Skip to content

fix: 'create agent' command to show template, bolt framework, and agent framework options#479

Merged
mwbrooks merged 7 commits intomainfrom
zimeg-fix-create-inputs
Apr 9, 2026
Merged

fix: 'create agent' command to show template, bolt framework, and agent framework options#479
mwbrooks merged 7 commits intomainfrom
zimeg-fix-create-inputs

Conversation

@zimeg
Copy link
Copy Markdown
Member

@zimeg zimeg commented Apr 9, 2026

Changelog

Fix create agent command to show prompts for the app template, Bolt Framework, and then Agent Framework. This adds more templates to options, including Bolt for JavaScript & Bolt for Python implementations of the Starter Agent and Support Agent templates.

Summary

This PR fixes the slack create agent command prompts with separate inputs for more framework and agent adapter options. This includes the following templates now:

Getting started

  • slack-samples/bolt-js-starter-template
  • slack-samples/bolt-python-starter-template

Starter agent

  • slack-samples/bolt-js-starter-agent --subdir claude-agent-sdk
  • slack-samples/bolt-js-starter-agent --subdir openai-agents-sdk
  • slack-samples/bolt-python-starter-agent --subdir claude-agent-sdk
  • slack-samples/bolt-python-starter-agent --subdir openai-agents-sdk
  • slack-samples/bolt-python-starter-agent --subdir pydantic-ai

Support agent

  • slack-samples/bolt-js-support-agent --subdir claude-agent-sdk
  • slack-samples/bolt-js-support-agent --subdir openai-agents-sdk
  • slack-samples/bolt-python-support-agent --subdir claude-agent-sdk
  • slack-samples/bolt-python-support-agent --subdir openai-agents-sdk
  • slack-samples/bolt-python-support-agent --subdir pydantic-ai

Automation apps

  • slack-samples/bolt-js-custom-function-template
  • slack-samples/bolt-python-custom-function-template
  • slack-samples/deno-starter-template

Preview

demo.mov

Reviewers

Confirm the expected options appear with the following commands:

$ slack create
$ slack create agent

Requirements

@zimeg zimeg added this to the Next Release milestone Apr 9, 2026
@zimeg zimeg requested a review from mwbrooks April 9, 2026 02:05
@zimeg zimeg self-assigned this Apr 9, 2026
@zimeg zimeg requested a review from a team as a code owner April 9, 2026 02:05
@zimeg zimeg added bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented changelog Use on updates to be included in the release notes semver:patch Use on pull requests to describe the release version increment area:bolt-js Related to github.com/slackapi/bolt-js labels Apr 9, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 9, 2026

Codecov Report

❌ Patch coverage is 83.50515% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.23%. Comparing base (14a0694) to head (897d858).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
cmd/project/create_template.go 83.50% 11 Missing and 5 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #479      +/-   ##
==========================================
+ Coverage   71.19%   71.23%   +0.04%     
==========================================
  Files         222      222              
  Lines       18595    18664      +69     
==========================================
+ Hits        13238    13295      +57     
- Misses       4178     4189      +11     
- Partials     1179     1180       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@mwbrooks mwbrooks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌🏻 Thanks so much for putting this pull request together @zimeg! 🙇🏻

📝 I've left some early feedback and questions that we'll want to work through. Let me know what you think!

"slack-cli#ai-apps/support-agent": {
{
Title: fmt.Sprintf("Claude Agent SDK %s", style.Secondary("Bolt for Python")),
Title: fmt.Sprintf("Bolt for JavaScript %s", style.Secondary("Node.js")),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: We originally brainstormed having the Secondary display the breadcrumb of the previous selection. I'm just curious why you decided to not include that?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mwbrooks Forgive this was omitted until comments below and e82f2a9! 🙏 ✨

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zimeg Thanks, this is much better! 🙇🏻

adapterPromptObjects := map[string][]promptObject{
"slack-cli#ai-apps/support-agent/bolt-js": {
{
Title: "Claude Agent SDK",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Why don't these have any Secondary text? To me, it feels a little off that these offer no hints or additional descriptions.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mwbrooks I hesitated on the right wording but found that a reminder of past selections might be useful to @srtaalej points with e82f2a9?

create

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zimeg This is looking better! I might have a few suggestions around wording but I'll keep looking on the PR first! 🔍

Copy link
Copy Markdown
Contributor

@srtaalej srtaalej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for making these changes 💟 !
this is working great but i think language/ ui improvements can be made 🤔
my main concern is that after the template is selected the flow is the exact same - there arent any indicators of what selection was made. it'd be nice to use Secondarys for that,,, or perhaps we look into charm features for this?

Copy link
Copy Markdown
Member

@mwbrooks mwbrooks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zimeg Thanks for the quick iterations! 🧭

The prompts are looking a lot better.

❓ Question: Do have the ability to customize the Bolt Framework prompt? Right now, the secondary doesn't show the breadcrumb from choosing the Starter Agent and Support Agent (see screenshot). If we don't have the ability because we're reusing the prompt for all templates then that's okay.

Image

@zimeg
Copy link
Copy Markdown
Member Author

zimeg commented Apr 9, 2026

@mwbrooks Let's check out 897d858 for possible changes? I updated the demo video in description with the latest 📸

Edit: This was kept consistent to avoid confusion between other create prompts but I understand the agent experience is unique enough to not stress about this right now.

@mwbrooks mwbrooks changed the title fix: separate inputs for more framework and agent adapter options fix: 'create agent' command to show template, bolt framework, and agent framework options Apr 9, 2026
Copy link
Copy Markdown
Member

@mwbrooks mwbrooks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Woohoo! This is looking very good! Love the recent update and now the breadcrumbs are consistent throughout the create agent prompt journey.

@mwbrooks mwbrooks merged commit 3ecb295 into main Apr 9, 2026
8 checks passed
@mwbrooks mwbrooks deleted the zimeg-fix-create-inputs branch April 9, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bolt-js Related to github.com/slackapi/bolt-js bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented changelog Use on updates to be included in the release notes semver:patch Use on pull requests to describe the release version increment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants